package com.com.datastructures.stack;

/**
 * Created with IntelliJ IDEA.
 * User: Ngo Lap Thanh
 * Date: 23/05/14
 * Time: 3:33 PM
 * To change this template use File | Settings | File Templates.
 */
public class Stack2Test {
    public static void main(String args[]){
        Stack2<Integer> integerStack2 = new Stack2<Integer>();

        integerStack2.push(2);
        integerStack2.push(3);
        integerStack2.push(4);

        System.out.println(integerStack2.peek());

        System.out.println(integerStack2.pop());

        System.out.println(integerStack2.peek());

        System.out.println(integerStack2.peek());

        Stack2<String> stringStack2 = new Stack2<String>();

        stringStack2.push("A");
        stringStack2.push("B");
        stringStack2.push("C");

        System.out.println(stringStack2.peek());

        System.out.println(stringStack2.pop());

        System.out.println(stringStack2.peek());

        System.out.println(stringStack2.peek());


    }

}
